﻿using System;
using ValidationFramework.Reflection;
using System.Linq.Expressions;
using System.Collections.Generic;

namespace ValidationFramework.Fluent
{
	public static class ValidationConfig
	{
		public static void ClearRulesFor<T>() where T : class
		{
			TypeCache.RemoveType<T>();
		}
		public static PropertyInfo<T> Ensure<T>(Expression<Func<T, object>> expression) where T : class
		{
			return new PropertyInfo<T>(expression);
		}

	}
}
